package w11;

import java.time.LocalDate;

public class CalDate {
	public static void main(String[] args) {
		LocalDate s = LocalDate.of(2023, 9, 1);
		LocalDate e = LocalDate.of(2024, 1, 8);
		LocalDate n = LocalDate.now();
		
		int sd = s.getDayOfYear();
		int nd = n.getDayOfYear();
		int w = (nd-sd) / 7 + 1;
		System.out.println("当前周:" + w);
		
		int hd = e.getDayOfYear() - n.getDayOfYear();
		if (hd < 0) {
			hd += 365;
		}
		System.out.println("放假还有：" + hd);
		
	}

}
